package kong_gui_items;

public class Display extends BaseGraphics {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8914584354947358585L;
	
	
	@Override
	public Double getAngle() {return angle;}
	public Double getPower() {return power;}
	public Double getErrorRate() {return errorRate;}
	public int getBarrelPosX() {return barrelPosX;}
	public int getBarrelPosY() {return barrelPosY;}
	public String getMessage() {return message;}
	public Boolean getMicStatus() {return micStatus;}
	
	@Override
	public void setAngle(Double angle) {this.angle = angle;}
	public void setPower(Double power) {this.power = power;	}
	public void setBarrelPosX(int barrelPosX) {this.barrelPosX = barrelPosX;}
	public void setBarrelPosY(int barrelPosY) {this.barrelPosY = barrelPosY;}
	public void setMicOn(boolean micStatus){this.micStatus = micStatus;}
	
	public void setErrorRate(Double errorRate) {
 
		//100 = 0% error. 80 = -20% 120 = +20%
		this.errorRate = errorRate-1.0;
		this.repaint();
		
	}
	
	Double angle = 0.0;
	Double power = 0.0;
	Double errorRate = 0.0;
	int barrelPosX = 0;
	int barrelPosY = 0;
	Boolean micStatus = false;
	
	String message = "";
	
	public Display() {
	
		
		super(0, 600, ".\\Resources\\Picts\\Affichage.png", false);

	}
	
	public void setMessage(String message){
		this.message = message;
		this.repaint();
	}
	
	
}
